import request from '@/utils/request'

// 查询专项检查隐患信息列表
export function listGovernHiddenInventory(query) {
  return request({
    url: '/check/governHiddenInventory/list',
    method: 'get',
    params: query
  })
}

// 查询专项检查隐患信息详细
export function getGovernHiddenInventory(hiddenInventoryId) {
  return request({
    url: '/check/governHiddenInventory/' + hiddenInventoryId,
    method: 'get'
  })
}

// 新增专项检查隐患信息
export function addGovernHiddenInventory(data) {
  return request({
    url: '/check/governHiddenInventory',
    method: 'post',
    data: data
  })
}

// 修改专项检查隐患信息
export function updateGovernHiddenInventory(data) {
  return request({
    url: '/check/governHiddenInventory',
    method: 'put',
    data: data
  })
}

// 删除专项检查隐患信息
export function delGovernHiddenInventory(data) {
  return request({
    url: '/check/governHiddenInventory',
    method: 'delete',
    params: data
  })
}

// 上报
export function uploadGovernHiddenInventory(params) {
  return request({
    url: '/check/governHiddenInventory/upload',
    method: 'get',
    data: params

  })
}

// 确认
export function confirmGovernHiddenInventory(params) {
  return request({
    url: '/check/governHiddenInventory/confirm',
    method: 'post',
    data: params

  })
}
